<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // break 是退出整个循环

        let i = 1
        while (i <= 5) {
            if (i === 3) {
                continue //结束本次循环，console不会执行了，但是还是会返回上去执行while循环
            }
            console.log(`我要吃第${i}个`)
            i++
        }
    </script>
</body>

</html>